package com.etc.service;


import com.etc.pojo.News;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface NewsDaoServices {
    /**
     * 增加动态
     */
    boolean pushNews(News news);
    /**
     * 查询动态
     */
    List<News> getallNews();

    PageInfo<News> getPageAllNews(Integer pageNum, Integer pageSize);
    /**
     * 删除news
     */
    boolean deleteN(int newsId);

    /**
     * 分页模糊查询
     * @author gyx
     */
    List<News> getNewsByLike(int userId,String newsDetail, int pageNum, int size);
}
